import Vue from 'vue'
import Router from 'vue-router'
import Index from '../components/Index'
import CustomerService from '../components/currency/CustomerService'
//帮助页面
import Help from '../components/help/Help'
import Question from '../components/help/Question'
import Call from '../components/help/Call'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect:'/index'
    },
    {
      path: '/index',
      name: 'Index',
      component: Index,
      children: [
        //帮助页面
        {
          path: 'help',
          name: 'Help',
          component: Help,
          redirect:'/index/help/question',
          children: [
            {
              path:'question',
              name:'Question',
              component:Question
            },
            {
              path:'call',
              name:'Call',
              component:Call
            }
          ]
        },
      ]
    },

    //客服页面
    {
      path: '/CustomerService',
      name: 'CustomerService',
      component: CustomerService
    }
  ]
})
